package cn.tedu.charging.order.client;

import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="charging-user")
public interface UserClient {
    //检查用户 车辆 充电枪匹配
    @GetMapping("/user/charge/check")
    JsonResult<Boolean> checkUserCharge(@RequestParam("userId")Integer userId,
                                               @RequestParam("gunId")Integer gunId);
}
